package de.jonasbs.breakblock.game;

public class GameStatistic {
	private int destroyedBlocks;
	private int hits;
	private long playTime;
	private int points;

	public int getDestroyedBlocks() {
		return destroyedBlocks;
	}

	public void setDestroyedBlocks(int destroyedBlocks) {
		this.destroyedBlocks = destroyedBlocks;
	}

	public int getHits() {
		return hits;
	}

	public void setHits(int hits) {
		this.hits = hits;
	}

	public long getPlayTime() {
		return new java.util.Date().getTime() - playTime;
	}

	public void setPlayTime(long playTime) {
		this.playTime = playTime;
	}

	public int getPoints() {
		return points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public void addHit() {
		hits++;
	}

	public void addPoints(int points) {
		this.points += points;
	}

	public GameStatistic() {
		super();
		this.destroyedBlocks = 0;
		this.hits = 0;
		this.playTime = new java.util.Date().getTime();
		this.points = 0;
	}

	public void addDestroyedBlock() {
		destroyedBlocks++;
	}

}
